<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
    <body>
        <h2>自定义登录页面</h2>
        <p style="color: red" th:if="${param.error}">用户名或密码错误</p>
    <form th:action="@{/login}" method="post">
        <table>
            <tr>
                <td>用户名:</td>
                <td>
                    <label>
                        <input type="text" name="username"/>
                    </label>
                </td>
                <td>密码:</td>
                <td>
                    <label>
                        <input type="text" name="password"/>
                    </label>
                </td>
            </tr>

            <tr>
                <td colspan="2">
                    <button type="submit">登录</button>
                </td>
            </tr>
        </table>
    </form>
    </body>
</html>